
package com.shop.cloud.mall.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cloud.mall.common.entity.UserPoints;

/**
 * 用户积分
 *
 * @author
 * @date 2023-11-23 10:28:55
 */
public interface UserPointsService extends IService<UserPoints> {

    /**
     * 统一更新操作用户积分
     * @param userId 用户ID
     * @param posts 积分变量。+加，-减
     */
    void updateUserPoints(String userId, Integer posts);
}
